<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>表单输入绑定</title>
  </head>
  <body>
    <script src="../vue.js"></script>
    <div id="app">
      <input type="text" name="" id="" v-model="message" value="000" />
      <p>{{ message }}</p>
      <hr />
      <select v-model="selected">
        <option disabled value="">请选择</option>
        <br />
        <option value="a">a</option>
        <option value="b">b</option>
        <option value="c">c</option>
      </select>
      <span>selected:{{ selected}}</span>
    </div>
    <script>
      var vm = new Vue({
        el: "#app",
        data: {
          message: "hello vue",
          selected: "",
        },
      });
    </script>
  </body>
</html>
